package com.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.jms.consumer.ConsumerService;
import com.jms.subscribe.SubScribeService;

public class ConsumerTest1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		ApplicationContext context = new ClassPathXmlApplicationContext("spring/spring.xml");
		ConsumerService consumer = (ConsumerService) context.getBean("consumerService");
		SubScribeService sub = (SubScribeService) context.getBean("firstsubscribeService");
		
		//consumer.receive();
        //sub.receive();
	}

}
